package com.itheima.sfbx.security.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

@Data
@ApiModel(value = "LoginRequestDTO", description = "登录认证请求参数")
public class LoginRequestDTO {

    @ApiModelProperty(value = "授权模式", example = "password", required = true)
    private String grant_type;

    @ApiModelProperty(value = "Oauth2客户端ID", example = "operators-pc", required = true)
    private String client_id;

    @ApiModelProperty(value = "Oauth2客户端秘钥", example = "pass", required = true)
    private String client_secret;

    @ApiModelProperty(value = "登录类型，详解OauthConstant登录类型", example = "USER_USERNAME")
    private String login_type;

    @ApiModelProperty(value = "登录用户名", example = "admin@qq.com")
    private String username;

    @ApiModelProperty(value = "登录密码", example = "pass")
    private String password;

    @ApiModelProperty(value = "手机号，用于手机登录", example = "15156403088")
    private String mobile;

    @ApiModelProperty(value = "小程序code，用于小程序登录")
    private String code;

    @ApiModelProperty(value = "会话usetToken【应该是userToken，刷新令牌时使用】")
    private String usetToken;

    // 如果还有其他参数，可以继续在这里添加
}